<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>朋友圈列表</title>
	<!-- <link rel="stylesheet" href="{$CSS}/bootstrap3.3.7.min.css"> -->
	<link rel="stylesheet" href="/layui/css/layui.css">
	<link rel="stylesheet" href="/khlist/css/common.css">
	<link rel="stylesheet" href="/fission/css/iconfont.css">
	<link rel="stylesheet" href="/hyqcss/public.css">
	<style type="text/css">
		
		html{
			height: 100%;
		}
		body{
			height: 100%;
		}
		.public_buttonSearch_container{
			display: flex;
			justify-content: space-between;
			align-items: center;
			margin: 20px;
		}
		.public_buttonSearch_container button{
			border: none;
			color: #fff;
			background-color: #1E9FFF;
			text-shadow: 0 -1px 0 rgb(0 0 0 / 12%);
			height: 36px;
			padding: 4px 15px;
			font-size: 14px;
			border-radius: 2px;
			display: flex;
			align-items: center;
		}
		.public_Search_container{
			position: relative;
		}
		.public_Search_container input{
			width: 240px;
			height: 32px;
			border: 1px solid #d9d9d9;
		}
		.public_Search_container i{
			position: absolute;
			bottom: 6px;
			right: 10px;
			cursor: pointer;
		}
		/*公共头部带搜索 end*/
		
	</style>
</head>
<body style="background: #e9e9e9;">
	<!-- 顶部提示框 开始 -->
	<div class="public_tipSetting_contaienr">
		<div class="public_tipSetting_content">
			<p>发布个人朋友圈 即可发布到单个员工的（历史）朋友圈，发布企业朋友圈即可发布到多个（或全部）员工的（历史）朋友圈</p>
			<a href="https://support.qq.com/products/174823/faqs/81275" target="_blank">查看教程</a>
			<svg id="closeTips" t="1599462804099" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8813" width="15" height="15"><path d="M512 102.4a409.6 409.6 0 1 0 409.6 409.6 409.6 409.6 0 0 0-409.6-409.6z m181.248 518.144a51.2 51.2 0 0 1-72.704 72.704L512 584.192l-108.544 109.056a51.2 51.2 0 0 1-72.704-72.704L439.808 512 330.752 403.456a51.2 51.2 0 0 1 72.704-72.704L512 439.808l108.544-109.056a51.2 51.2 0 0 1 72.704 72.704L584.192 512z" fill="" p-id="8814"></path></svg>
		</div>
	</div>
	<ul class="public-header-nav">
	    <li ><a href="pyq.html">朋友圈</a></li>
	    <li ><a href="set.html">设置默认个人信息</a></li>
	    <li ><a href="pyq_list.html">发布个人朋友圈</a></li>
	    <li><a class="public-header-nav-active" href="qy_list.html">发布企业朋友圈</a></li>
	</ul>

	<div class="public_buttonSearch_container">
		<button onclick="add_pyq()">+ 新建朋友圈</button>
		<form  method="get" action="" id="Form1">
			<div class="public_Search_container">
				<input type="text" name="writing" value="{$writing}" required  lay-verify="required" placeholder="请输入文本信息" autocomplete="off" class="layui-input">
				<i class="layui-icon layui-icon-search" onclick="document.getElementById('Form1').submit()"></i>
			</div>
		</form>
	</div>
	<div class="public_table_container" style="padding-bottom: 0;">
			<table class="layui-table" lay-skin="line" style="margin: 0;">
			  <colgroup>
			      <col width="25">
			      <col width="25">
			      <col width="25">
			      <col width="25">
			      <col width="25">
			      <col>
			    </colgroup>
			    <thead>
			      <tr style="background: #fff;">
			        <th>所属员工</th>
			        <th>类型</th>
			        <th>文本信息</th>
			        <th>创建时间</th>
			        <th>操作</th>
			      </tr> 
			    </thead>
			    <tbody>
				{loop $friends_circle as $list}
				<tr>
			        <td>
			        	{loop $list["user"] as $user}
	                        {$user["name"]}
                    	{/loop}
			        </td>
			        <td>{$list["msg"]}</td>
			        <td>{$list["writing"]}</td>
			        <td>{$list["ctime"]}</td>
			        <td>
			        	<a type="button" onclick="details('{$list['id']}')" class="table-public-btn">详情</a>
			        </td>
			      </tr>
				{/loop}
			    </tbody>
			</table>
		</div>
		<div class="main-container-hh pageing-container-h" style="padding: 20px 20px; margin: 0 20px;">
			<div class="pageing-content-h" style="margin-left: 20px;">
				<span>{$p->totalnum}条/{$p->totalpage}页</span> 
			</div>
			<ul class="pageing-content-h" style="margin-right: 20px;">
				{P weidogsadmin}
			</ul>
		</div>
</body>
</html>
<script src="/cdn/jquery.js"></script>
<script src="/layui/layui.all.js"></script>
<script src="/js/ajax.js"></script>
<script type="text/javascript">
	$("#closeTips").click(function(){
		$('.public_tipSetting_contaienr').hide();
	})
	function add_pyq(){
		layer.open({
			type: 2,
			title: '新建朋友圈,<span style="font-size:1px;">官方并未提供发布朋友圈接口，此处发布的是历史朋友圈</span>',
			shadeClose: true,
			shade: 0.2,
			area: ['800px', '600px'],
			content: 'qy_pyq.html',
			end:function () {
		        window.location.reload();
		    }
		});
	}

	function details(id){
		layer.open({
			type: 2,
			title: '新建朋友圈',
			shadeClose: true,
			shade: 0.2,
			area: ['800px', '600px'],
			content: 'details.html?id='+id
		});
	}
</script>